export function randomChoice(arr) {
    return arr[Math.floor(Math.random() * arr.length)];
}

export function getItemByName(arr, name) {
    return arr.find(item => item.name === name);
}